package com.liuzhilong.infrastructure.basic.prototype;

public class UseCase {
    public static void main(String[] args) {
        testClone();
    }
    public static void testClone(){
        PrototypeInfo prototype = new PrototypeInfo().setInfo("原型机一号").setName("No1");
        System.out.println("创建数量"+prototype.createCount());
        PrototypeInfo prototypeClone = prototype.clone();
        System.out.println("创建数量"+prototype.createCount());
        System.out.println(prototype==prototypeClone);
        System.out.println(prototype.getName()==prototypeClone.getName());



    }
}
